{include file="header.tpl"}
<head>
<script type="text/javascript">
function deletechecked()
{
	var answer = confirm("Delete Selected Recored ?")
	if (answer)
	{
	  document.messages.submit();
	}
	return false;  
}
//amount total function
function setAmount(txtObj)
{
  var row = $(txtObj).parents('.billRow');
  var price = parseFloat(row.find('.weight').val()) * parseFloat(row.find('.labour').val());
  isNaN(price) ? row.find('.amount').val("") : row.find('.amount').val(price);
  setTotAmount();
}
</script>
</head>
<form name="aavakVoucher" action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="aavakvoucherId" value="{$aavakvoucherId}" />
<input type="hidden" name="billNo" value="{$billNum}" />
<center>
  <b>Shree Ram Silver</b><br/>
  All Kind Of Fancy Silver Jewllery<br/>
  6-shree Ranchhodnager Socity, Pedak Road<br/>
  Behind Navodit School. Rajkot-3 Mo.- 9898195000
</center><br/>
<table border="1" width="100%">
<tr>
  <td align="center" class="table1">Silver Aavak Voucher</td>
</tr>
<tr class="billRow">  
	<td valign="top">
		<div class="bill">
			<label>Bill No.</label>
			  <input type="text" name="billNo" value="{$billNum}" />
			<label>Bill Date :</label>
			  {html_select_date prefix="date" start_year="-2" end_year="+1" field_order="DMY" day_value_format="%02d" time=$billMst.date}
      <label>Debit Credit:</label>
        <select name="drCr">
        	<option value="Debit">Debit </option>
        	<option value="Credit">Credit</option>
        </select><br/><br/>
			<label>Party Name</label>
		    <input type="text" name="partyName"  size = "100" /></br>
			<label>Credit Silver</label>
			  <input type="text" name="silver"/>
			<label>Touch</label>
			  <input type="text" name="touch" />
			<label>Weight</label>
		    <input type="text" name="weight" class="weight" onChange="setAmount(this)"/></br>
		  <label>Labour</label>
		    <input type="text" name="labour" class="labour" onChange="setAmount(this)"/>
		  <label>Rupees</label>
		    <input type="text" name="amount" class="amount" onChange="setAmount(this)"/></br>
		    <input type="submit" name="insertBtn" value="Save"/>
		</div>
	</td>
</tr>
</table>
</form>
<script language="javascript">document.aavakvoucher.billNo.focus();</script>
{include file="footer.tpl"}